import { createApp } from './main'
const { app, router } = createApp()
import airbnb from './db'

router.isReady().then(() => {
  app.mount('#app')
})
router.beforeEach((to, from, next) => {
  airbnb.airbnbDB
    .openStore({
      ...airbnb.languageObjectStore,
      ...airbnb.userObjectStore
    })
    .then((res: any) => {
      console.log('初始化', res)
      next()
    })
})
